package com.vt.admin.api.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auther: PanZha
 * @Date: 2018/10/12 15:04
 */
@Data
public class TreeNode {

    protected String id;
    protected String parentId;
    protected List<TreeNode> children = new ArrayList();

    public void add(TreeNode node) {
        children.add(node);
    }
}
